import re
import time

import requests

headers={
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36"
    }
response = requests.get("https://www.vmgiles.com/12985.html",headers=headers)
html = response.text

urls = re.findall('<a href="(.*?)" alt=".*?" title=".*?"',html)
print(urls)

for url in urls:
    time.sleep(1)
    file_name = url.split('/')[-1]
    resp = requests.get(url,headers=headers)
    with open('linshi/' + file_name,'wb') as f:
        f.write(resp.content)


# 人工智能？？   爬虫获取数据后，交给人工智障进行数据分析   更新快， bs只是工具，哪个快，哪个来
# 手机脚本  游戏脚本